import { Group } from "three";
import { BaseModel , AssemblyProductModel, ProductModel, SubModel} from "../Models";

export class Base3DGroup extends Group {
  model: BaseModel;

  constructor(m: BaseModel) {
    super();
    this.model = m;
  }
}

export class AssemblyProductGroup extends Base3DGroup {
  constructor(assemblymodel: AssemblyProductModel) {
    super(assemblymodel);
  }
}

export class Product3DGroup extends Base3DGroup {
  constructor(json: ProductModel) {
    super(json);
  }
}

export class Sub3DGroup extends Base3DGroup {
  constructor(json: SubModel) {
    super(json);
  }
}

export class AnimateGroup extends Group{
  isDoorOpen:boolean;

  constructor(){
    super();
    this.isDoorOpen = false;
  }
}